{% extends '::base_admin.html.twig' %}

{% block title %}Edit Site Pages{% endblock %}

{% block body %}
            {% if form_errors(form) %}
            <div class="alert alert-error">
                {{ form_errors(form) }}
            </div>
            {% endif %}
            <form class="form-horizontal legend well" action="{{ path('admin_site_pages') }}" method="post" {{ form_enctype(form) }}>
                <legend>About Page</legend>
                <div class="control-group{% if form_errors(form.aboutEnText) %} error{% endif %}">
                    <label class="control-label">About English Content:</label>
                    <div class="controls">
                        {{ form_widget(form.aboutEnText) }}
                        <span class="help-inline">{{ form_errors(form.aboutEnText) }}</span>
                    </div>
                </div>
                <div class="control-group{% if form_errors(form.aboutArText) %} error{% endif %}">
                    <label class="control-label">About Arabic Content:</label>
                    <div class="controls">
                        {{ form_widget(form.aboutArText) }}
                        <span class="help-inline">{{ form_errors(form.aboutArText) }}</span>
                    </div>
                </div>
                <legend>Scholarships Page</legend>
                <div class="control-group{% if form_errors(form.scholarshipsEnText) %} error{% endif %}">
                    <label class="control-label">Scholarships English Content:</label>
                    <div class="controls">
                        {{ form_widget(form.scholarshipsEnText) }}
                        <span class="help-inline">{{ form_errors(form.scholarshipsEnText) }}</span>
                    </div>
                </div>
                <div class="control-group{% if form_errors(form.scholarshipsArText) %} error{% endif %}">
                    <label class="control-label">Scholarships Arabic Content:</label>
                    <div class="controls">
                        {{ form_widget(form.scholarshipsArText) }}
                        <span class="help-inline">{{ form_errors(form.scholarshipsArText) }}</span>
                    </div>
                </div>
                <legend>Career Page</legend>
                <div class="control-group{% if form_errors(form.careerEnText) %} error{% endif %}">
                    <label class="control-label">Career English Content:</label>
                    <div class="controls">
                        {{ form_widget(form.careerEnText) }}
                        <span class="help-inline">{{ form_errors(form.careerEnText) }}</span>
                    </div>
                </div>
                <div class="control-group{% if form_errors(form.careerArText) %} error{% endif %}">
                    <label class="control-label">Career Arabic Content:</label>
                    <div class="controls">
                        {{ form_widget(form.careerArText) }}
                        <span class="help-inline">{{ form_errors(form.careerArText) }}</span>
                    </div>
                </div>
                <legend>Privacy Page</legend>
                <div class="control-group{% if form_errors(form.privacyEnText) %} error{% endif %}">
                    <label class="control-label">Privacy English Content:</label>
                    <div class="controls">
                        {{ form_widget(form.privacyEnText) }}
                        <span class="help-inline">{{ form_errors(form.privacyEnText) }}</span>
                    </div>
                </div>
                <div class="control-group{% if form_errors(form.privacyArText) %} error{% endif %}">
                    <label class="control-label">Privacy Arabic Content:</label>
                    <div class="controls">
                        {{ form_widget(form.privacyArText) }}
                        <span class="help-inline">{{ form_errors(form.privacyArText) }}</span>
                    </div>
                </div>
                <legend>Terms Page</legend>
                <div class="control-group{% if form_errors(form.termsEnText) %} error{% endif %}">
                    <label class="control-label">Terms English Content:</label>
                    <div class="controls">
                        {{ form_widget(form.termsEnText) }}
                        <span class="help-inline">{{ form_errors(form.termsEnText) }}</span>
                    </div>
                </div>
                <div class="control-group{% if form_errors(form.termsArText) %} error{% endif %}">
                    <label class="control-label">Terms Arabic Content:</label>
                    <div class="controls">
                        {{ form_widget(form.termsArText) }}
                        <span class="help-inline">{{ form_errors(form.termsArText) }}</span>
                    </div>
                </div>

                {{ form_rest(form) }}
                <div class="control-group">
                    <div class="controls">
                        <button type="submit" class="btn">Change</button>
                    </div>
                </div>
            </form>
{% endblock %}
